package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-11-13
 */
@TableName("sys_device_info")
public class DeviceInfo extends Model<DeviceInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 显示屏IP1
     */
    @TableField("screen_ip1")
    private String screenIp1;
    /**
     * 显示屏IP2
     */
    @TableField("screen_ip2")
    private String screenIp2;
    /**
     * 摄像头IP1
     */
    @TableField("camera_ip1")
    private String cameraIp1;
    /**
     * 摄像头IP2
     */
    @TableField("camera_ip2")
    private String cameraIp2;
    /**
     * 设备名称
     */
    @TableField("device_name")
    private String deviceName;
    /**
     * 预留字段
     */
    private String note1;
    /**
     * 预留字段
     */
    private String note2;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getScreenIp1() {
        return screenIp1;
    }

    public void setScreenIp1(String screenIp1) {
        this.screenIp1 = screenIp1;
    }

    public String getScreenIp2() {
        return screenIp2;
    }

    public void setScreenIp2(String screenIp2) {
        this.screenIp2 = screenIp2;
    }

    public String getCameraIp1() {
        return cameraIp1;
    }

    public void setCameraIp1(String cameraIp1) {
        this.cameraIp1 = cameraIp1;
    }

    public String getCameraIp2() {
        return cameraIp2;
    }

    public void setCameraIp2(String cameraIp2) {
        this.cameraIp2 = cameraIp2;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getNote1() {
        return note1;
    }

    public void setNote1(String note1) {
        this.note1 = note1;
    }

    public String getNote2() {
        return note2;
    }

    public void setNote2(String note2) {
        this.note2 = note2;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DeviceInfo{" +
        "id=" + id +
        ", screenIp1=" + screenIp1 +
        ", screenIp2=" + screenIp2 +
        ", cameraIp1=" + cameraIp1 +
        ", cameraIp2=" + cameraIp2 +
        ", deviceName=" + deviceName +
        ", note1=" + note1 +
        ", note2=" + note2 +
        "}";
    }
}
